projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659d24c
)
a11y: Simplify code
author
Benjamin Otte
<otte@redhat.com>
Tue, 5 Jul 2011 15:31:00 +0000
(17:31 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 6 Jul 2011 14:40:05 +0000
(16:40 +0200)
gtk/a11y/gtktextviewaccessible.c
patch
|
blob
|
history
diff --git
a/gtk/a11y/gtktextviewaccessible.c
b/gtk/a11y/gtktextviewaccessible.c
index db29d9dcf6263f6c97fb52bde747fe1974fe8ae7..e89823d83a93cd821b4785fb3752744dc8caa151 100644
(file)
--- a/
gtk/a11y/gtktextviewaccessible.c
+++ b/
gtk/a11y/gtktextviewaccessible.c
@@
-1293,9
+1293,6
@@
mark_set_cb (GtkTextBuffer *buffer,
{
GtkTextView *text = data;
GtkTextViewAccessible *accessible;
- const char *mark_name;
-
- mark_name = gtk_text_mark_get_name (mark);
accessible = GTK_TEXT_VIEW_ACCESSIBLE (gtk_widget_get_accessible (GTK_WIDGET (text)));
@@
-1303,7
+1300,7
@@
mark_set_cb (GtkTextBuffer *buffer,
* Only generate the signal for the "insert" mark, which
* represents the cursor.
*/
- if (
g_strcmp0 (mark_name, "insert") == 0
)
+ if (
mark == gtk_text_buffer_get_insert (buffer)
)
{
gint insert_offset, selection_bound;
gboolean selection_changed;